{block admin_content}
<h1>Priority úkolů</h1>
<table width="100%">
	<thead>
		<tr><th width="40">Váha</th><th>Název</th><th width="20"><a n:href="addPriority">Přidat</a></th></tr>
	</thead>
	<tbody>
		{foreach $priorities as $priority}
		<tr>
			<td><div class="priority{$priority[priority]}" style="width:25px;text-align:center;margin:auto;">{$priority[priority]}</div></td>
			<td>{$priority[name]}</td>
			<td class="center"><a n:href="editPriority, $priority[id]"><img src="{$basePath}/images/edit.gif"></a> <a n:href="deletePriority!, $priority[id]" onclick="return del();"><img src="{$basePath}/images/delete.gif"></a></td>
		</tr>
		{/foreach}
	</tbody>
</table>
<script type="text/javascript">
function del(){
	return confirm('Opravdu chcete smazat prioritu?');
}
</script>
{/block}